<template>
    <div class="category">
        <h3>{{title}}分类</h3>
        <slot>默认插槽,没有传值就显示</slot>
        <slot>默认插槽,没有传值就显示</slot>
    </div>
  
</template>

<script>
    export default {
        name:"Category",
        props:["title"]
    }
</script>

<style>
    .category{
        background-color: skyblue;
        width: 200px;
        height: 300px;
    }
    h3{
    text-align: center;
    background-color: orange;
    }
</style>